package scsc.web.system.forms;

import scsc.web.system.AppActionForm;
import scsc.web.system.data.SysDictItemData;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;

public class SysDictItemForm
    extends AppActionForm {

  private SysDictItemData data;
  private SysDictItemData conditionData;

  public SysDictItemForm() {
    super();
    data = new SysDictItemData();
    conditionData = new SysDictItemData();
  }

  public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
    data.reset();
    conditionData.reset();
  }

  public ActionErrors validate(ActionMapping mapping,
                               HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();
    return errors;
  }

  /**
   * Returns the data.
   * @return SysMenuData
   */
  public SysDictItemData getData() {
    return data;
  }

  /**
   * Sets the data.
   * @param data The data to set
   */
  public void setData(SysDictItemData data) {
    this.data = data;
  }

  /**
   * Returns the conditionData.
   * @return SysDynamicMenuDataData
   */
  public SysDictItemData getConditionData() {
    return conditionData;
  }

  /**
   * Sets the conditionData.
   * @param conditionData The conditionData to set
   */
  public void setConditionData(SysDictItemData conditionData) {
    this.conditionData = conditionData;
  }

}
